import request from "@/utils/request"

export function banner() {

  return request({
    // url: `/cmsservice/cms-banner/getBannerList`,
    url: `/cmsservice/cms-banner/getAllBanner`,
    method: 'POST',
  }).then(res => res.data)
}

//查询指导老师
export function getTeacher(page, limit, data) {
  return request({
    method: 'POST',
    url: `/cmsservice/cms-teacher/getTeacherList/${page}/${limit}`,
    data
  }).then(res => res.data)
}

//查询指导老师
export function getTeachers(page, limit) {
  return request({
    method: 'POST',
    url: `/cmsservice/cms-teacher/getTeacherList/${page}/${limit}`,
  }).then(res => res.data)
}

//查询优秀成员
export function searchForOutstandingMembers(page, limit) {
  return request({
    method: 'POST',
    url: `/cmsservice/cms-member/getMemberList/${page}/${limit}`,
  }).then(res => res.data)
}

//查询公告
export function getAnnouncementList(page, limit) {
  return request({
    method: 'POST',
    url: `/cmsservice/cms-announcement/getAnnouncementList/${page}/${limit}`,
    data: {}
  }).then(res => res.data)
}

//查询公告
export function getAnnouncementLists(page, limit, data) {
  return request({
    method: 'POST',
    url: `/cmsservice/cms-announcement/getAnnouncementList/${page}/${limit}`,
    data
  }).then(res => res.data)
}

//查询活动
export function getActivityList(page, limit) {
  return request({
    method: 'POST',
    url: `/cmsservice/cms-activity/getActivityList/${page}/${limit}`,
    data: {}
  }).then(res => res.data)
}

//查询活动
export function getAllActivityList() {
  return request({
    method: 'POST',
    url: `/cmsservice/cms-activity/getAllActivityList`,
  }).then(res => res.data)
}

//查询活动
export function getActivityLists(page, limit, data) {
  return request({
    method: 'POST',
    url: `/cmsservice/cms-activity/getActivityList/${page}/${limit}`,
    data
  }).then(res => res.data)
}

//查询部门
export function getDeptByPage(page, limit, data) {
  return request({
    method: 'POST',
    url: `/joinservice/join-dept/getDeptByPage/${page}/${limit}`,
    data
  }).then(res => res.data)
}

//新增反馈
export function addFeedBack(form) {
  return request({
    method: 'POST',
    url: `/cmsservice/cms-feedback/addFeedBack`,
    data: form
  }).then(res => res.data)
}

//查询反馈表信息（类型）
export function getAllFeedBackInfo() {
  return request({
    method: 'GET',
    url: `/cmsservice/cms-feedback/getAllFeedBackInfo`,
  }).then(res => res.data)
}

//公告详细信息
export function getAnnouncementById(id) {
  return request({
    method: 'GET',
    url: `/cmsservice/cms-announcement/getAnnouncementById/${id}`,
  }).then(res => res.data)
}



